home *** CD-ROM | disk | FTP | other *** search
- -- background: 3149 from stack: in.0
- -- bmap block id: 4484
- -- flags: 4000
- -- background id: 0
- -- name: Main
- ----- HyperTalk script -----
- on closeCard
- set scroll of field "Catalog" to 0
- end closeCard
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 2007
- -- rect: left=5 top=101 right=280 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Catalog
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 2004
- -- rect: left=5 top=279 right=336 bottom=62
- -- title width / last selected line: 0
- -- icon id / first selected line: 902 / 902
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Previous
- ----- HyperTalk script -----
- on mouseUp
- go to previous card of background "Main"
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 2004
- -- rect: left=60 top=279 right=336 bottom=117
- -- title width / last selected line: 0
- -- icon id / first selected line: 26425 / 26425
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- go to next card of background "Main"
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=174 top=279 right=336 bottom=231
- -- title width / last selected line: 0
- -- icon id / first selected line: 8538 / 8538
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Find
- ----- HyperTalk script -----
- on mouseUp
- doMenu "Find..."
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=229 top=279 right=336 bottom=286
- -- title width / last selected line: 0
- -- icon id / first selected line: 20186 / 20186
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sort Cards
- ----- HyperTalk script -----
- on mouseUp
- answer "Sort by which field?" with "Disk Name" or "Disk Box" or "Disk Label"
- if it is "Disk Name" then
- lock screen
- set cursor to watch
- sort by field "Name"
- else
- if it is "Disk Box" then
- lock screen
- set cursor to watch
- sort by field "Box"
- else
- answer "Sort how?" with "Text" or "Numeric"
- lock screen
- set cursor to watch
- if it is "Numeric" then
- sort numeric by field "Label"
- else
- sort text by field "Label"
- end if
- end if
- end if
- go to first card of background "Main"
- unlock screen
- set cursor to hand
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=284 top=279 right=336 bottom=341
- -- title width / last selected line: 0
- -- icon id / first selected line: 1 / 1
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Read Disk
- ----- HyperTalk script -----
- on mouseUp
- answer "Replace contents of this card?" with "Cancel" or "Ok"
- if it is "Ok" then
- put CatStuff() into catalog
- if line 1 of catalog is "OK" then
- put line 2 of catalog into field "Name"
- put item 1 of line 3 of catalog into field "Size"
- put item 2 of line 3 of catalog into field "Free"
- put the abbrev date into field "Date"
- delete line 1 to 3 of catalog
- put catalog into field "Catalog"
- end if
- end if
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=339 top=279 right=336 bottom=396
- -- title width / last selected line: 0
- -- icon id / first selected line: 1 / 1
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Card
- ----- HyperTalk script -----
- on mouseUp
- if the commandKey is up then
- put doit() into ok
- else
- ask "Box name for multiple read?"
- put it into boxname
- answer "Auto-number the labels?" with "No" or "Yes"
- if it is "Yes" then
- ask "Start with what number?"
- put it into labelnum
- else
- put empty into labelnum
- end if
- put true into ok
- repeat while ok
- put doit() into ok
- if ok then
- put boxname into field "Box"
- if labelnum is empty then
- ask "Disk label?"
- put it into field "Label"
- else
- put labelnum into field "Label"
- add 1 to labelnum
- end if
- end if
- end repeat
- end if
- end mouseUp
-
- function doit
- doMenu "New Card"
- put CatStuff() into catalog
- if line 1 of catalog is "OK" then
- put line 2 of catalog into field "Name"
- put item 1 of line 3 of catalog into field "Size"
- put item 2 of line 3 of catalog into field "Free"
- put the abbrev date into field "Date"
- delete line 1 to 3 of catalog
- put catalog into field "Catalog"
- return true
- else
- doMenu "Delete Card"
- return false
- end if
- end doit
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=394 top=279 right=336 bottom=451
- -- title width / last selected line: 0
- -- icon id / first selected line: 2 / 2
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Kill Card
- ----- HyperTalk script -----
- on mouseUp
- if the commandKey is up then
- answer "Delete this card?" with "Cancel" or "Ok"
- if it is "Ok" then
- lock screen
- doMenu "Delete Card"
- go to background "Main"
- unlock screen
- end if
- else
- answer "Remove all data cards?" with "Ok" or "Cancel"
- if it is "Ok" then
- lock screen
- go to first card of background "Main"
- repeat while (the number of cards of background "Main") Γëá 1
- set cursor to busy
- doMenu "Delete Card"
- end repeat
- doMenu "New Card"
- go to first card of background "Main"
- doMenu "Delete Card"
- set cursor to watch
- doMenu "Compact Stack"
- set cursor to hand
- unlock screen
- end if
- end if
- end mouseUp
-
-
-
- -- part 12 (button)
- -- low flags: 00
- -- high flags: 2004
- -- rect: left=449 top=279 right=336 bottom=506
- -- title width / last selected line: 0
- -- icon id / first selected line: 1020 / 1020
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Help/Info
- ----- HyperTalk script -----
- on mouseUp
- push card
- go to card "Help" of background "Title"
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 2004
- -- rect: left=115 top=279 right=336 bottom=172
- -- title width / last selected line: 0
- -- icon id / first selected line: 20098 / 20098
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- if the commandkey is up then
- go home
- else
- doMenu "Open Stack..."
- end if
- end mouseUp
-
-
-
- -- part 14 (field)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=84 top=6 right=25 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Label
-
-
- -- part 15 (field)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=84 top=24 right=43 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Box
-
-
- -- part 16 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=84 top=60 right=79 bottom=141
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Free
-
-
- -- part 18 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=369 top=60 right=79 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Date
-
-
- -- part 20 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=84 top=42 right=61 bottom=505
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Name
-
-
- -- part 21 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=219 top=60 right=79 bottom=276
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Size
-